<?php

$socket =stream_socket_client('tcp://121.4.59.57:9501',$err_code,$err_msg,10);
fwrite($socket,"我是上海全栈的");
$buffer = fread($socket,9000);
fclose($socket);
echo $buffer;
